package com.lingyu.jsjx.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lingyu.jsjx.domain.DocumentShare;

/**
 * 共享
 * Mapper接口
 *
 * @author ruoyi
 * @date 2025-07-31
 */
public interface DocumentShareMapper extends BaseMapper<DocumentShare> {
    /**
     * 查询共享
     *
     * @param shareId 共享主键
     * @return 共享
     */
    public DocumentShare selectDocumentShareByShareId(Long shareId);

    public List<DocumentShare> selectDocumentShareByWordId(Long shareId);

    /**
     * 查询共享列表
     *
     * @param documentShare 共享
     * @return 共享集合
     */
    public List<DocumentShare> selectDocumentShareList(DocumentShare documentShare);

    /**
     * 新增共享
     *
     * @param documentShare 共享
     * @return 结果
     */
    public int insertDocumentShare(DocumentShare documentShare);


    /**
     * 新增共享
     *
     * @param list 共享
     * @return 结果
     */
    public int batchInsertDocumentShare(List<DocumentShare> list);

    /**
     * 修改共享
     *
     * @param documentShare 共享
     * @return 结果
     */
    public int updateDocumentShare(DocumentShare documentShare);

    /**
     * 删除共享
     *
     * @param shareId 共享
     *                主键
     * @return 结果
     */
    public int deleteDocumentShareByShareId(Long shareId);

    /**
     * 批量删除共享
     *
     * @param shareIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteDocumentShareByShareIds(Long[] shareIds);
}
